﻿using System;

namespace StatsData.Api.Models
{
    public class SyncLineKpiModel
    {
        /// <summary>
        /// 组织ID
        /// </summary>
        public string OrgId { get; set; }

        /// <summary>
        /// 日期 当月一号
        /// </summary>
        public DateTime CurrDate { get; set; }

        /// <summary>
        /// 模块标题 OQC FPY UPPH 产能
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 日期维度 月度 WK1 WK2 WK3 WK4
        /// </summary>
        public string DateType { get; set; }

        public string LineCode { get; set; }

        public string LineName { get; set; }

        /// <summary>
        /// 累计值
        /// </summary>
        public decimal Actual { get; set; }

        /// <summary>
        /// 目标值
        /// </summary>
        public decimal Target { get; set; }

        public decimal TargetPCSQty { get; set; }

        /// <summary>
        /// 检验合格批次
        /// </summary>
        public decimal CheckedBatchOkQty { get; set; }

        /// <summary>
        /// 检验批次
        /// </summary>
        public decimal CheckedBatchQty { get; set; }

        public string ProcedureName { get; set; }

        /// <summary>
        /// 总投产数据
        /// </summary>
        public decimal TotalBookingQty { get; set; }

        /// <summary>
        /// ok数量 总投产数量 - 不良数量
        /// </summary>
        public decimal OkQty { get; set; }

        /// <summary>
        /// 产出统计数
        /// </summary>
        public decimal FinishStatisQty { get; set; }

        /// <summary>
        /// 实际工时
        /// </summary>
        public decimal UserWorkHour { get; set; }

        public string Type { get; set; }

        public DateTime? Time { get; set; }
    }
}
